<template>
  <div id="app">
    <div style=" text-align:center; margin:10px; background-color:#D19275; color:White; padding:8px;"><h1>某某Web办公系统</h1></div>
    <div v-html="msg">

    </div>
    <div id="main">
      <ol>
        <li>
        <a href="javascript:POBrowser.openWindowModeless('http://localhost:8081/word','width=1200px;height=800px;');">打开Word文档</a>
        </li>
        <li>
        <a href="javascript:POBrowser.openWindowModeless('http://localhost:8081/excel','width=1200px;height=800px;');">打开Excel文档</a>
        </li>
      </ol>

	</div>
  </div>
</template>

<script>

export default {
  name: 'App',
  data() {
    return {
      msg: ''
    }
  },
  created() {
    this.$axios.get("/api/word").then(res=>{
      this.msg = res.data.substring(3)
    })
  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
